<template>
  <div>
    <a-modal
      v-model="visible"
      title="类别编辑（行业属性）"
      ok-text="确认"
      cancel-text="取消"
      @ok="onOK"
    >
      表达式 <a-input v-model="expression"></a-input>
    </a-modal>
  </div>
</template>
<script>
export default {
    data(){
        return {
            visible:false,
            callback:null,
            owner:null,
            expression:''
        }
    },
    methods:{
        Show(owner,callback){
            this.callback = callback
            this.owner = owner
            this.visible = true
        },
        onOK(){
            let self = this
            if(this.callback){
                this.callback(this.owner,this.expression).then(()=>{
                    self.visible = false
                })
            }
        }
    }
}
</script>